{% extends "counterpoint/forum_base.html" %}

{% block title %}Viewing Profile - {{ block.super }}{% endblock %}

{% block breadcrumbs %}
  {{ block.super }} &raquo; Viewing Profile
{% endblock %}
{% block breadcrumbs2 %}
  {{ block.super }} &raquo; Viewing Profile
{% endblock %}

{% block content %}
        <table>
          <tr class="row2"><td colspan="4">&nbsp;</td></tr>
          <tr class="row2">
            <td>&nbsp;</td>
            <td class="profile_field">Name</td>
            <td class="profile_value">{{ object.nickname }}</td>
            <td>&nbsp;</td>
          </tr>
{% if object.avatar %}
          <tr class="row2">
            <td>&nbsp;</td>
            <td class="profile_field">Avatar</td>
            <td class="profile_value"><img src="{{ object.avatar }}" class="avatar" alt="Avatar" /></td>
            <td>&nbsp;</td>
          </tr>
{% endif %}
          <tr class="row2">
            <td>&nbsp;</td>
            <td class="profile_field">Posts</td>
            <td class="profile_value">{{ object.post_count }}</td>
            <td>&nbsp;</td>
          </tr>
{% if object.location %}
          <tr class="row2">
            <td>&nbsp;</td>
            <td class="profile_field">Location</td>
            <td class="profile_value">{{ object.location }}</td>
            <td>&nbsp;</td>
          </tr>
{% endif %}
{% if object.website %}
          <tr class="row2">
            <td>&nbsp;</td>
            <td class="profile_field">Website</td>
            <td class="profile_value"><a href="{{ object.website }}">{{ object.website }}</a></td>
            <td>&nbsp;</td>
          </tr>
{% endif %}
{% ifequal object current_user %}
          <tr class="row2">
            <td>&nbsp;</td>
            <td></td>
            <td class="profile_value"><a href="{{ object.url }}subs/">View Subscribed Threads</a></td>
            <td>&nbsp;</td>
          </tr>
{% endifequal %}
          <tr class="row2">
            <td colspan="4">&nbsp;</td>
          </tr>
          <tr class="row2">
{% ifequal object forum_user %}
            <td colspan="4" class="edit_profile_link">
              <a href="{{ object.edit_url }}">Edit Profile</a>
            </td>
{% else %}
  {% if perms.forum.change_forumuser %}
            <td colspan="4" class="edit_profile_link">
              <a href="{{ object.edit_url }}">Edit Profile</a>
            </td>
  {% else %}
            <td colspan="4">&nbsp;</td>
  {% endif %}
{% endifequal %}
          </tr>
        </table>
{% endblock %}
